<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%--<%@ page import="com.iWen.survey.dao.*" %>
<%@ page import="com.iWen.survey.dto.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
	LinkDAO dao=DAOFactory.getLinkDAO();
	Long lid=Long.valueOf(request.getParameter("lid"));
	Link link=dao.findLink(lid);
 %>--%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <script language="JavaScript" src="../Js/Func.js"></script>
<%--
    <script language="JavaScript" src="../Js/prototype.js"></script>
--%>
    <script language="JavaScript" src="../Js/jquery-1.7.2.js"></script>
    <link rel="stylesheet" href="../Css/Admin.css" type="text/css"/>
    <script src="${pageContext.request.contextPath}/Js/link/linkModify.js"></script>
    <%--<script language="javascript">

        window.onload = tableFix;

        function Check() {
            if ($("#url").val() == "") {
                alert("请输入网址！");
                return false;
            }
            if ($("#sitename").val() == "") {
                alert("请输入网站名称！");
                return false;
            }

        }
    </script>--%>

</head>
<body>
<div class=nav><a href=admin_main.jsp>桌面</a>»友情链接编辑
    <hr>
</div>
<div id="admin_surveyAdd_main">
    <form name="from1" <%--action="<%=basePath%>link/EditLink.do"--%> method="post" onSubmit="return Check();">

        <table width="585" border="0" cellspacing="0" cellpadding="0" class="table">
            <tr>
                <th>友情链接添加</th>
                <th>&nbsp;</th>
                <th><span class="R">*</span> 为必填项目</th>
            </tr>
            <tr>
                <td>编号</td>
                <td><input name="lid" id="lid" type="text" size="50" value="${detailLink.id}" readonly></td>
                <td><span class="R">*</span>编号是数据主键，不能随意更改</td>
                <td></td>
            </tr>
            <tr>
                <td>网址</td>
                <td><input name="urlLink" id="urlLink" type="text" value="${detailLink.url}"></td>
                <td><span class="R">*</span>网址，请以HTTP://开头</td>
            </tr>
            <tr>
                <td>网站名称</td>
                <td><input name="siteName" id="siteName" type="text" value="${detailLink.name}"></td>
                <td><span class="R">*</span> 即链接显示的文字</td>
            </tr>
            <tr>
                <td>网站说明</td>
                <td><textarea name="description" id="description"
                              cols="50">${detailLink.info}<%--<%=link.getLInfo() %>--%></textarea></td>
                <td> 当鼠标移到LOGO上时显示的文字</td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td>
                    <div id="button">
                        <input type="button" name="submit" id="linkEdit" value="完成">
                        <input type="button" onclick="javascript:history.back();" value="取消">

                    </div>
                </td>
                <td>&nbsp;</td>
            </tr>
        </table>
    </form>
</div>
<div id="admin_surveyAdd_bottom">
</div>
</body>
<%--<script type="text/javascript">
    document.forms[0].url.value = "&lt;%&ndash;<%=link.getLUrl().replace("\"","\\\"") %>&ndash;%&gt;";
    document.forms[0].sitename.value = "&lt;%&ndash;<%=link.getLName().replace("\"","\\\"")  %>&ndash;%&gt;";
</script>--%>
</html>